#include "PrecissionDriving.h"
#include "WPILib.h"

PrecissionDriving::PrecissionDriving() {
	// Use requires() here to declare subsystem dependencies
	Requires(drive);
	//SetTimedout(0.1);
}

// Called just before this Command runs the first time
void PrecissionDriving::Initialize() {
}

// Called repeatedly when this Command is scheduled to run
void PrecissionDriving::Execute() {
	
	if(drive->isPrecissionDriving())
		drive->setPrecissionDriving(false);
	else
		drive->setPrecissionDriving(true);
	
	oi->setPrecissionDrivingStatus(drive->isPrecissionDriving());
}

// Make this return true when this Command no longer needs to run execute()
bool PrecissionDriving::IsFinished() {
	return true;
}

// Called once after isFinished returns true
void PrecissionDriving::End() {
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void PrecissionDriving::Interrupted() {
}
